from django.conf.urls.defaults import *
from django.conf import settings


# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^pieceup/', include('pieceup.foo.urls')),

    # Uncomment the next line to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:



    (r'^admin/(.*)', admin.site.root),
    (r'^polls/', include('pieceup.polls.urls')),
    (r'^$', 'pieceup.blog.views.index'),
    (r'^blog/', include('pieceup.blog.urls')),
    (r'^site_media/(?P<path>.*)$',\
     'django.views.static.serve',\
     {'document_root': settings.STATIC_PATH}),

    (r'^upload_media/(?P<path>.*)$',\
     'django.views.static.serve',\
     {'document_root': settings.STATIC_PATH_UPLOAD}),

    (r'^app_media/(?P<path>.*)$',\
     'django.views.static.serve',\
     {'document_root': settings.MEDIA_ROOT}),
)
